

export default [
    {
        path: '/login',
        component: '@/layouts/UserLayout',
        routes: [
          {
            path: '/login',
            title: '登录',
            name: 'login',
            component: '@/pages/login',
          },
        ],
      },
      {
        path: '/exception',
        routes: [
          {
            path: '/exception/403',
            name: 'not-permission',
            component: '@/pages/exception/403',
          },
          {
            path: '/exception/404',
            name: 'not-find',
            component: '@/pages/exception/404',
          },
        ],
      },
      {
        path: '/',
        component: '@/layouts/BasicLayout',
        routes: [
          { path: '/', redirect: '/home'},
          {
            path: '/home',
            title: '建筑师训练',
            name: 'home',
            component: '@/pages/home',
          },
          {
            path: '/search',
            title: '搜索',
            name: 'search',
            component: '@/pages/search',
          },
          {
            path: '/search/detail',
            title: '答题',
            name: 'search',
            component: '@/pages/search/detail',
          },
          {
            path: '/history',
            title: '历史记录',
            name: 'history',
            routes:[
              {
                path: '/history/index',
                title: '测试记录',
                name: 'historyIndex',
                component: '@/pages/history',
              },
              {
                path: '/history/detail',
                title: '测试详情',
                name: 'historyIndex',
                component: '@/pages/history/detail',
              },
              {
                path: '/history/analysis',
                title: '详情解析',
                name: 'historyIndex',
                component: '@/pages/history/analysis',
              },
              
              {
                path: '/history/answer',
                title: '训练记录',
                name: 'historyIndex',
                component: '@/pages/history/answer',
              },
              
              {
                path: '/history/chapter',
                title: '答题记录',
                name: 'historyIndex',
                component: '@/pages/history/chapter',
              },
              {
                path: '/history/error',
                title: '错题库',
                name: 'historyIndex',
                component: '@/pages/history/error',
              },
              {
                path: '/history/error',
                title: '错题库',
                name: 'historyIndex',
                component: '@/pages/history',
              },
            ]
          },
          {
            path: '/chapter',
            title: '章节',
            name: 'chapter',
            component: '@/pages/chapter',
          },
          {
            path: '/answer',
            title: '答题',
            name: 'answer',
            component: '@/pages/answer',
          },
          {
            path: '/question',
            title: '报错',
            name: 'question',
            component: '@/pages/question',
          },
          {
            path: '/exam',
            title: '模拟练习',
            name: 'exam',
            component: '@/pages/exam',
          },
          {
            path: '/exam/score',
            title: '成绩',
            name: 'score',
            component: '@/pages/exam/score',
          },
          
          {
            path: '/my',
            title: '我的',
            name: 'my',
            component: '@/pages/my',
          },
          {
            component: '@/pages/exception/404',
          },
        ]
    
    }
]